package com.example.main;

import org.springframework.util.CollectionUtils;

import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;

public class Main04 {
    public static void main(String[] args) {

        List<String> list =new ArrayList<>();

        list.add("12");
        list.add("14");
        list.add("56");
        List<String> collect = list/*.stream().collect(Collectors.toList())*/;
        List<String> collec2 = list/*.stream().collect(Collectors.toList())*/;
        list.clear();
        collect.clear();
        System.out.println();

    }

}
